package field_method02;

import java.util.Scanner;

public class ComputerTest {

    public static void main(String[] args) {


        //成员变量 ---->对象.属性 =
        //通过对象就可以使用，
        // 本类中直接调用，其他类中“对象.实例变量
        Tv tv = new Tv();

        tv.price = 6000;

        Computer cp = new Computer();

        cp.price = 5000;




        Computer computer = new Computer();
        computer.type = "联想";
        computer.price = 4399;
        computer.gameName = "永劫无间";


        computer.playGame();





//        new Scanner().next();//从键盘录入字符串


    }
}

